function Loss   = v7_LossFunction(ParametersIn, RealMoments, MomentCovar)

SimMoments  = v7_Moments(ParametersIn);

Loss        = (RealMoments - SimMoments)' * inv(MomentCovar) * (RealMoments - SimMoments);

return
